selectionmodels: Add set_model() support
authorBenjamin Otte <otte@redhat.com>
Sat, 4 Jul 2020 23:08:12 +0000 (01:08 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 5 Jul 2020 00:59:21 +0000 (02:59 +0200)
commit795d3122cc53897cbc25cbfc64a1e15e806f5ce2
treed2137c3af64857c7ce6ced0bdbe1f01495b58703
parent508073072822b83dccf3bc5aa642f488c967de52
selectionmodels: Add set_model() support

Now that we don't care about item types anymore, we can make the child
models settable.

We try to retain the selection, even when the model changes.
docs/reference/gtk/gtk4-sections.txt
gtk/gtkmultiselection.c
gtk/gtkmultiselection.h
gtk/gtknoselection.c
gtk/gtknoselection.h
gtk/gtksingleselection.c
gtk/gtksingleselection.h
testsuite/gtk/multiselection.c
testsuite/gtk/singleselection.c